Package com.cisco.pt.ipc.sim.impl
Class BluetoothManagerImpl
java.lang.Object
com.cisco.pt.ipc.impl.IPCObjectImpl
com.cisco.pt.ipc.sim.impl.ProcessImpl
com.cisco.pt.ipc.sim.impl.BluetoothManagerImpl
- All Implemented Interfaces:
IPCObject,BluetoothManager,Process
Information provided by the PKI file:
\class BluetoothManager
\brief BluetoothManager.
\example network().getDevice("SBC0").getProcess("BluetoothManager")
- Author:
- Auto-generated
-
Field Summary
Fields inherited from class com.cisco.pt.ipc.impl.IPCObjectImpl
accessMessage, ipcFactory, packetTracerSession -
Constructor Summary
ConstructorsConstructorDescriptionBluetoothManagerImpl(IPCFactory ipcFactory, PacketTracerSession packetTracerSession, IPCMessageLTV accessMessage) -
Method Summary
Modifier and TypeMethodDescriptionvoidacceptPairRequest(MACAddress macAddress, String deviceName) booleanbroadcastBeacon(UUID beaconUuid, String data) voiddiscover()voidenableBroadcast(boolean bEnable) intgetDevice(MACAddress macAddress) getDeviceAt(int index) getDeviceByName(String deviceName) intbooleanbooleanbooleanvoidpair(MACAddress macAddress) booleanprocessPairRequest(MACAddress macAddress, String deviceName) voidsetBeaconBroadcasting(boolean bBroadcast) voidsetBeaconData(String data) voidsetBeaconFrequency(int secs) voidsetBeaconUuid(UUID beaconUuid) voidsetDiscoverable(boolean bDiscoverable) voidunpair(MACAddress macAddress) Methods inherited from class com.cisco.pt.ipc.sim.impl.ProcessImpl
getOwnerDeviceMethods inherited from class com.cisco.pt.ipc.impl.IPCObjectImpl
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSession, sendMessage, sendMessageWithReturn, translateToCommandStatusStringPairMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.cisco.pt.ipc.IPCObject
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSessionMethods inherited from interface com.cisco.pt.ipc.sim.Process
getOwnerDevice
-
Constructor Details
-
BluetoothManagerImpl
public BluetoothManagerImpl(IPCFactory ipcFactory, PacketTracerSession packetTracerSession, IPCMessageLTV accessMessage)
-
-
Method Details
-
setDiscoverable
public void setDiscoverable(boolean bDiscoverable) - Specified by:
setDiscoverablein interfaceBluetoothManager- Parameters:
bDiscoverable- Takes in a parameter of bDiscoverable
-
isDiscoverable
public boolean isDiscoverable()- Specified by:
isDiscoverablein interfaceBluetoothManager- Returns:
- boolean Returns a boolean
-
discover
public void discover()- Specified by:
discoverin interfaceBluetoothManager
-
pair
- Specified by:
pairin interfaceBluetoothManager- Parameters:
macAddress- Takes in a parameter of macAddress
-
acceptPairRequest
- Specified by:
acceptPairRequestin interfaceBluetoothManager- Parameters:
macAddress- Takes in a parameter of macAddressdeviceName- Takes in a parameter of deviceName
-
unpair
- Specified by:
unpairin interfaceBluetoothManager- Parameters:
macAddress- Takes in a parameter of macAddress
-
processPairRequest
- Specified by:
processPairRequestin interfaceBluetoothManager- Parameters:
macAddress- Takes in a parameter of macAddressdeviceName- Takes in a parameter of deviceName- Returns:
- boolean Returns a boolean
-
getDeviceCount
public int getDeviceCount()- Specified by:
getDeviceCountin interfaceBluetoothManager- Returns:
- int Returns a int
-
getDeviceAt
- Specified by:
getDeviceAtin interfaceBluetoothManager- Parameters:
index- Takes in a parameter of index- Returns:
- BluetoothDevice Returns a BluetoothDevice
-
getDevice
- Specified by:
getDevicein interfaceBluetoothManager- Parameters:
macAddress- Takes in a parameter of macAddress- Returns:
- BluetoothDevice Returns a BluetoothDevice
-
getDeviceByName
- Specified by:
getDeviceByNamein interfaceBluetoothManager- Parameters:
deviceName- Takes in a parameter of deviceName- Returns:
- BluetoothDevice Returns a BluetoothDevice
-
enableBroadcast
public void enableBroadcast(boolean bEnable) - Specified by:
enableBroadcastin interfaceBluetoothManager- Parameters:
bEnable- Takes in a parameter of bEnable
-
isBroadcastEnabled
public boolean isBroadcastEnabled()- Specified by:
isBroadcastEnabledin interfaceBluetoothManager- Returns:
- boolean Returns a boolean
-
setBeaconBroadcasting
public void setBeaconBroadcasting(boolean bBroadcast) - Specified by:
setBeaconBroadcastingin interfaceBluetoothManager- Parameters:
bBroadcast- Takes in a parameter of bBroadcast
-
isBeaconBroadcasting
public boolean isBeaconBroadcasting()- Specified by:
isBeaconBroadcastingin interfaceBluetoothManager- Returns:
- boolean Returns a boolean
-
setBeaconFrequency
public void setBeaconFrequency(int secs) - Specified by:
setBeaconFrequencyin interfaceBluetoothManager- Parameters:
secs- Takes in a parameter of secs
-
getBeaconFrequency
public int getBeaconFrequency()- Specified by:
getBeaconFrequencyin interfaceBluetoothManager- Returns:
- int Returns a int
-
setBeaconUuid
- Specified by:
setBeaconUuidin interfaceBluetoothManager- Parameters:
beaconUuid- Takes in a parameter of beaconUuid
-
getBeaconUuid
- Specified by:
getBeaconUuidin interfaceBluetoothManager- Returns:
- UUID Returns a UUID
-
setBeaconData
- Specified by:
setBeaconDatain interfaceBluetoothManager- Parameters:
data- Takes in a parameter of data
-
getBeaconData
- Specified by:
getBeaconDatain interfaceBluetoothManager- Returns:
- String Returns a String
-
broadcastBeacon
- Specified by:
broadcastBeaconin interfaceBluetoothManager- Parameters:
beaconUuid- Takes in a parameter of beaconUuiddata- Takes in a parameter of data- Returns:
- boolean Returns a boolean
-
createCustomProcess
- Specified by:
createCustomProcessin interfaceBluetoothManager- Returns:
- CustomBluetoothProcess Returns a CustomBluetoothProcess
-